Optimal. Leaf size=29 \[ \frac{(b B-A c) \log (b+c x)}{b c}+\frac{A \log (x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0204292, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.059, Rules used = {631} \[ \frac{(b B-A c) \log (b+c x)}{b c}+\frac{A \log (x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 631
Rubi steps
\begin{align*} \int \frac{A+B x}{b x+c x^2} \, dx &=\int \left (\frac{A}{b x}+\frac{b B-A c}{b (b+c x)}\right ) \, dx\\ &=\frac{A \log (x)}{b}+\frac{(b B-A c) \log (b+c x)}{b c}\\ \end{align*}
Mathematica [A] time = 0.0091392, size = 29, normalized size = 1. \[ \frac{(b B-A c) \log (b+c x)}{b c}+\frac{A \log (x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 32, normalized size = 1.1 \begin{align*}{\frac{A\ln \left ( x \right ) }{b}}-{\frac{\ln \left ( cx+b \right ) A}{b}}+{\frac{\ln \left ( cx+b \right ) B}{c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.1099, size = 39, normalized size = 1.34 \begin{align*} \frac{A \log \left (x\right )}{b} + \frac{{\left (B b - A c\right )} \log \left (c x + b\right )}{b c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.4723, size = 63, normalized size = 2.17 \begin{align*} \frac{A c \log \left (x\right ) +{\left (B b - A c\right )} \log \left (c x + b\right )}{b c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.430276, size = 41, normalized size = 1.41 \begin{align*} \frac{A \log{\left (x \right )}}{b} + \frac{\left (- A c + B b\right ) \log{\left (x + \frac{- A b + \frac{b \left (- A c + B b\right )}{c}}{- 2 A c + B b} \right )}}{b c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24458, size = 42, normalized size = 1.45 \begin{align*} \frac{A \log \left ({\left | x \right |}\right )}{b} + \frac{{\left (B b - A c\right )} \log \left ({\left | c x + b \right |}\right )}{b c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]